"use strict";
cc._RF.push(module, '49dc14ksA5JgJujKoARrHu9', 'UiUtils');
// script/poker_project/base/UiUtils.ts

"use strict";
/**
 * 改变当前节点的父节点，但是不改变它在世界坐标系上面的位置。
 */
Object.defineProperty(exports, "__esModule", { value: true });
var UIUtils = /** @class */ (function () {
    function UIUtils() {
    }
    UIUtils.move = function (node, targetParent, cleanup) {
        if (cleanup === void 0) { cleanup = false; }
        var wp = node.convertToWorldSpaceAR(cc.v3(0, 0, 0));
        var pp = targetParent.convertToNodeSpaceAR(wp);
        node.removeFromParent(false);
        node.position = pp;
        targetParent.addChild(node);
    };
    return UIUtils;
}());
exports.default = UIUtils;

cc._RF.pop();